<?php
    class Doc_group extends ActiveRecord\Model {  
        static $belongs_to = array(
            array('department')
        );  
        

      static function AddNewGroup($newGroup)
      {       
                            
          $type = new Doc_group($newGroup);
          return $type->save();
      }
    
    }
    
?>